
AS		= nasm
LD		= ld
CC		= gcc

ASFLAGS	= -I$(TOPDIR)/../inc -I$(TOPDIR)/inc -O0
LDFLAGS	= -r
CFLAGS	= -c -I$(TOPDIR)/../inc -I$(TOPDIR)/inc -Wall -O2 -std=c99 -fno-stack-protector -fomit-frame-pointer -fno-strict-aliasing

BIN		= $(TOPDIR)/bin
TMP		= $(TOPDIR)/tmp

%.o :	%.c
	$(CC) $(CFLAGS) -o $*.o $<

%.o :	%.asm
	$(AS) $(ASFLAGS) -felf -o $*.o $<
